import requests
import json

# Flask 应用的接口地址
url = "http://localhost:5000/api/v1/startCrawler"

# 请求头
headers = {"Content-Type": "application/json"}

# 请求体
request_body = {
    "platform": "dy",
    "keywords": "2025春晚"
}

# 发送 POST 请求
response = requests.post(url, headers=headers, data=json.dumps(request_body))

# 打印响应状态码和响应内容
print("Response Status Code:", response.status_code)
print("Response Content:", response.json())